<template>
  <div>
    <button @click="plus">+1</button>
    <button @click="plusCountN(3)">+N</button>
  </div>
</template>

<script>
import { mapMutations } from 'vuex';
export default {
  data() {
    return {
      tit: 'index',
    };
  },
  methods: {
    ...mapMutations(['plusCount', 'plusCountN']),
    plus() {
      this.$store.commit('plusCount');
    }
  },
};
</script>

<style lang="scss">
</style>
